package com.wsb.wetchat.server;

import com.wsb.wetchat.utils.WetChatImg;

/**
 * @author wang shaobo
 * @date 2022/6/17  17:00
 */
public class WetChatTest {


    public static void main(String[] args) throws Exception {

        WetChatImg wetChatImg = new WetChatImg();

        String token = "EKOrdyIxau7F5Ql76_qJlkLc9-wqw9EBh7fjpJF1wDskwBU1ygKhKesKVOCfnSQV40ytEk1bn1yig3U7qOlLev-XrYKSwG_QaE_TEwQGjVm6PDuxp9VX4pGebdYM9yOqTM7xlKgLodbiIZSTNwwyXpsGLTCJyvVgow8SyWd2t5VPi_BDITRmr3EWsqvIAUp494tHkkbNIN06YvFchf1BaQ";
        String jpg = wetChatImg.upload("image", "D:/001/001.image", token);
        String imageData = wetChatImg.createImageData("WangXingWen", 1000002, jpg);
        String s = wetChatImg.sendMsg(imageData, token);
        System.out.println(s);

    }

}
